package org.travel.app.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.travel.app.entity.spots.SpotsReservation;
import org.travel.app.entity.user.UserDiscountTicket;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author nmm
 * @date 2024-12-2024/12/8
 * @deriction 订单表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 优惠券id
     */
    private Integer discountId;

    /**
     * 订单时间
     */
    private Timestamp orderTime;


    /**
     *  订单总价
     */
    private BigDecimal totalPrice;

    /**
     * 订单状态
     */
    private  Integer status;


    /**
     * 订单创建时间
     */
    private Timestamp createdAt;


    /**
     * 订单修改时间
     */
    private Timestamp updatedAt;


    private Integer reservationId;

    /**
     * 酒店预约信息
     */
    private HotelReservation hotelReservation;

    /**
     * 景点预约信息
     */
    private SpotsReservation spotsReservation;

    /**
     * 订单优惠信息
     */
    protected CouponDetail couponDetail;

    /**
     * 预约游客个人信息
     */
    private IdVerification reservationUser;

    /**
     * 用户优惠券
     */
    private UserDiscountTicket userDiscountTicket;

}